package org.dromara.apartment.domain.bo;

import org.dromara.apartment.domain.LabelInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 标签信息业务对象 label_info
 *
 * @author CKJ
 * @date 2025-06-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = LabelInfo.class, reverseConvertGenerate = false)
public class LabelInfoBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 类型（1:公寓标签,2:房间标签）
     */
    private Integer type;

    /**
     * 标签名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;


}
